import axios from 'axios'; 
export const getFate = async (time, type) => {
    try {
        const res = await axios.get('https://v2.xxapi.cn/api/horoscope', {
            params: {
                time: time,
                type: type
            }
        });
        return res.data;
    } catch (error) {
        console.error('getFate错误:', error);
        throw error;
    }
};